//define proxy
/*var TorProxy = "PROXY 127.0.0.1:8118";
var NoProxy  = "DIRECT";
var proxomitron ="Proxy 127.0.0.1:8080";
var adblock  = "PROXY 127.0.0.1:5678";
var blocker = "Proxy 0.0.0.0.:80";
var tor = "SOCKS 127.0.0.1:9050";
*/
	Tor = "PROXY 127.0.0.1:8118";
	blocker = "Proxy 0.0.0.0:77777";
	proxomitron = "PROXY 127.0.0.1:8080";
	puff = "PROXY 127.0.0.1:1984";
	var Proxy = Tor;

function FindProxyForURL(url, host) 
{	

// Proxy
	if (shExpMatch(url, "https://chrome.google.com*")) { return Proxy; }
	if (shExpMatch(url, "https://*.torproject.org*")) return Proxy;
	if (shExpMatch(url, "https://*.xmarks.com*")) return Proxy;
	if (shExpMatch(url, "https://*twitter.com*")) return Proxy;
	if (shExpMatch(url, "https://*view=ad*")) return blocker;
	if (shExpMatch(url, "https://friendfeed.com/*")) return Proxy;
	
// ADS
	if (shExpMatch(url, "https://ssl.google-analytics.com*")) return blocker;
	if (shExpMatch(url, "https://pagead2.googleadservices.com*")) { return "Proxy 0.0.0.0:80"; }
	if (shExpMatch(url, "https://*&view=ad&*")) return blocker;

		
return proxomitron;
}

/*
ie --- file://d:/Program files/Totalcmd/Tools/Proxomitron/html/ray4/Tools/proxy.pac

firefox --- file:///d:/Program%20files/Totalcmd/Tools/Proxomitron/html/ray4/Tools/proxy.pac

dropbox --- ie --- file://d:/my dropbox/software/Totalcmd/Tools/Proxomitron/html/ray4/Tools/proxy.pac
firefox --- file:///d:/my%20dropbox/software/Totalcmd/Tools/Proxomitron/html/ray4/Tools/proxy.pac
*/